package com.itheima.homework.work1;
//电视机类
public class Television extends Electric{
    private String size;
    private String resolvingPower;//分辨率

    public Television() {
    }

    public Television(String bread, String model, String color, int price, String size, String resolvingPower) {
        super(bread, model, color, price);
        this.size = size;
        this.resolvingPower = resolvingPower;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getResolvingPower() {
        return resolvingPower;
    }

    public void setResolvingPower(String resolvingPower) {
        this.resolvingPower = resolvingPower;
    }

    @Override
    public String toString() {
        return super.toString()+
                "size='" + size + '\'' +
                ", resolvingPower='" + resolvingPower + '\'' +
                '}';
    }
}
